package com.zhcd.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhcd.sys.mapper.HospitalMapper;
import com.zhcd.sys.pojo.Hospital;
import com.zhcd.sys.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author feifei
 * @since 2021-12-05
 */
@Service
public class HospitalServiceImpl extends ServiceImpl<HospitalMapper, Hospital> implements HospitalService {
    /**
     * 查询所有医院列表
     * @return 全部信息
     */
    @Autowired
    private HospitalMapper hospitalMapper;

    @Override
    public List<Hospital> findAll() {
        return hospitalMapper.selectList(null);
    }
}
